package cn.tedu.jsd2207csmall.passport.repo;

import cn.tedu.jsd2207csmall.passport.pojo.vo.AdminListItemVO;
import cn.tedu.jsd2207csmall.passport.pojo.vo.AdminStandardVO;

import java.util.List;

public interface IAdminRedisRepository {
    String ADMIN_ITEM_KEY_PREFIX="admin:item:";

    String ADMIN_LIST_KEY="admin:list:";

    String ADMIN_ITEM_KEYS_KEY="adminKeys";

    void save(AdminStandardVO adminStandardVO);

    void save(List<AdminListItemVO> admins);

    Long deleteAll();

    AdminStandardVO get(Long id);

    List<AdminListItemVO> getList();

    List<AdminListItemVO> getList(long start,long end);
}
